<!--  -->
<template>
	<div class="">
		<el-table size="small" :data="mainPlanTaskList" style="">
			<el-table-column prop="name" label="子任务标题" />
			<el-table-column prop="code" label="子任务类型" />
			<el-table-column label="">
				<template #default="props">
					<!-- <el-button type="success" :icon="Plus" circle @click="createSubtask" /> -->
					<el-button type="primary" :icon="Edit" circle @click="editSubtask(props.row)" />
					<el-button type="danger" :icon="Delete" circle />
				</template>
			</el-table-column>
		</el-table>
	</div>
</template>
<script setup lang="ts">
import { Check, Delete, Edit, Message, Search, Star, Plus } from '@element-plus/icons-vue';
import { mainPlanTaskList } from '../mockdata';

const emits = defineEmits(['createSubtask']);

const createSubtask = () => {
	emits('createSubtask');
};

const editSubtask = rowData => {
	console.log('行数据', rowData);
};
</script>
<style lang="scss"></style>
